#include <stdio.h>

int main(int argc,char const *argv[])
{
    // FILE *file = fopen("io.txt","a+");
    FILE *file = fopen("io.txt","a+");
    if (file == NULL)
    {
        printf("打开文件失败\n");
    }
    else
    {
        printf("打开文件成功\n");
    }

    int fput_c=fputc('A',file);
    if (fput_c==EOF)
    {
        printf("写成功\n");
    }else{
        printf("写失败\n");
    }
    

    if(fclose(file) == 0)
    {
        printf("删除成功\n");
    }else
    {
        printf("删除失败\n");
    }

    return 0;
    
}